home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xpaint-2.1.1 / ColormapP.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  2KB  |  56 lines

  1. /* +-------------------------------------------------------------------+ */
  2. /* | Copyright 1992, 1993, David Koblas (koblas@netcom.com)            | */
  3. /* |                                                                   | */
  4. /* | Permission to use, copy, modify, and to distribute this software  | */
  5. /* | and its documentation for any purpose is hereby granted without   | */
  6. /* | fee, provided that the above copyright notice appear in all       | */
  7. /* | copies and that both that copyright notice and this permission    | */
  8. /* | notice appear in supporting documentation.  There is no           | */
  9. /* | representations about the suitability of this software for        | */
  10. /* | any purpose.  this software is provided "as is" without express   | */
  11. /* | or implied warranty.                                              | */
  12. /* |                                                                   | */
  13. /* +-------------------------------------------------------------------+ */
  14.  
  15. #ifndef _ColormapP_h
  16. #define _ColormapP_h
  17.  
  18. #include "Colormap.h"
  19. /* include superclass private header file */
  20. #include <X11/CoreP.h>
  21.  
  22. /* define unique representation types not found in <X11/StringDefs.h> */
  23.  
  24. #define XtRColormapResource "ColormapResource"
  25.  
  26. typedef struct {
  27.     int empty;
  28. } ColormapClassPart;
  29.  
  30. typedef struct _ColormapClassRec {
  31.     CoreClassPart    core_class;
  32.     ColormapClassPart    colormap_class;
  33. } ColormapClassRec;
  34.  
  35. extern ColormapClassRec colormapClassRec;
  36.  
  37. typedef struct {
  38.     Boolean        editable;
  39.     int        ncel, curcel;
  40.     Pixel        pixel;
  41.     Colormap    cmap;
  42.     XtCallbackProc    select;
  43.     int        cheight, cwidth;    /* cell width, height */
  44.     int        ncheight, ncwidth;    /* cell width, height */
  45.     XtCallbackList    callbacks;
  46.     int        thickness;
  47.     Pixel        foreground;
  48. } ColormapPart;
  49.  
  50. typedef struct _ColormapRec {
  51.     CorePart        core;
  52.     ColormapPart    color;
  53. } ColormapRec;
  54.  
  55. #endif /* _ColormapP_h */
  56.